#include<iostream>
using std::cout;
using std::endl;

#include"ThreadPool.hpp"

void Task()
{
  cout << "[" << std::this_thread::get_id() << "] is running" << endl;
}

int main()
{
  ThreadPool::GetInstance()->InitPool();

  while (true)
  {
      ThreadPool::GetInstance()->PushTask(Task);
      std::this_thread::sleep_for(std::chrono::milliseconds(1000));
  }


  return 0;
}
